from django.db import models
from dingxiang.utils.models import BaseModel

# Create your models here.
class NavigrionModel(BaseModel):
    POSTIONS_CHOICES = {
        (0,'头部导航'),
        (1,'底部导航'),
    }
    # 区分底部和头部导航
    link = models.CharField(max_length=200, verbose_name='链接')
    # 是否外部连接
    is_http = models.BooleanField(default=False)
    # 是否是顶部或者底部导航
    position = models.IntegerField(choices=POSTIONS_CHOICES, verbose_name='位置')
    class Meta():
        db_table = 'navigation'
        verbose_name = '导航'